<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绯闻专用VIP视频播放器</title>

<!-- 在container容器最上方添加 -->
<header style="
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
    text-shadow: 0 0 15px rgba(255,26,26,0.5);
">
    <h1 style="
        font-family: 'Microsoft YaHei';
        font-size: 2.5em;
        color: #fff;
        letter-spacing: 2px;
        background: linear-gradient(45deg, #ff1a1a 30%, #ffffff 70%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        margin: 0;
    ">
        绯闻专用VIP视频播放器
    </h1>
</header>
    <style>
        /* 设备切换 */
        .device-switcher {
            text-align: center;
            margin: 20px 0;
        }
        .device-switcher select {
            background: #222;
            border: 2px solid var(--accent-red);
            color: white;
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
        }

        :root {
            --main-bg: #111; 
            --accent-red: #ff1a1a;
            --text-primary: #fff;
        }
        body {
            background: var(--main-bg);
            color: var(--text-primary);
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 20px;
        }
        .container {
            max-width: 1182px;
            margin: 0 auto;
        }
        /* 下拉选择框样式 */
        .interface-selector {
            margin-bottom: 20px;
            position: relative;
        }
        .select-header {
            padding: 12px;
            background: #222;
            border: 2px solid var(--accent-red);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .options-container {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 300px;
            overflow-y: auto;
            background: #181818;
            border: 2px solid var(--accent-red);
            border-radius: 4px;
            display: none;
            z-index: 100;
        }
        .option-item {
            padding: 12px;
            border-bottom: 2px solid #333;
            transition: background 0.3s;
        }
        .option-item:hover {
            background: var(--accent-red);
        }
        .arrow {
            border: 6px solid transparent;
            border-top-color: var(--text-primary);
            transition: transform 0.3s;
        }
        .rotate {
            transform: rotate(180deg);
        }

        /* 播放器容器 */
        .player-container {
            position: relative;
            margin: 20px auto;
            background: #000;
            border-radius: 4px;
            border: 2px solid var(--accent-red);
            min-height: 497px;
        }
        #player {
            width: 100%;
            height: 100%;
            min-height: 496px;
            border: none;
        }
        /* 响应式设计 */
        @media (max-width: 768px) {
            .player-container {
                min-height: 300px;
            }
            #player {
                min-height: 300px;
            }
        }

        .input-group {
            display: grid;
            grid-template-columns: 1fr 120px;
            gap: 10px;
        }
        input {
            padding: 12px;
            background: #222;
            border: 2px solid var(--accent-red);
            color: white;
            border-radius: 4px;
        }
        button {
            background: var(--accent-red);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 4px;
            cursor: pointer;
        }

    </style>
</head>
<body>
        
        <div class="device-switcher">
            <select id="deviceSelect" onchange="switchDevice(this.value)">
                <option value="desktop">🖥️ 电脑：技术支持缘歌Q：535438052</option>
                <option value="iphone">📱 苹果:技术支持缘歌Q：535438052</option>
                <option value="ipad">📱 iPad:技术支持缘歌Q：535438052</option>
                <option value="android">📱 安卓:技术支持缘歌Q：535438052</option>
            </select>
        </div>

    <div class="container">
        <header class="main-header">
        <div class="interface-selector">
            <div class="select-header" onclick="toggleOptions()">
                <span>腾讯VIP视频地址</span>
                <div class="arrow"></div>
            </div>
            <div class="options-container" id="optionsContainer"></div>
        </div>
        
        <div class="input-group">
            <input type="text" id="videoUrl" placeholder="粘贴视频地址（如：https://v.qq.com/x/cover/xxxxx.html）">
            <button onclick="playVideo()">立即播放>>></button>
        </div>
        
        <div class="player-container">
            <iframe id="player" allowfullscreen></iframe>
        </div>
    </div>

    <script>

        // 设备预设配置
        const devicePresets = {
            desktop: { name: "电脑模式", width: "100%", height: "100%" },
            iphone: { name: "iPhone", width: "420px", height: "844px" },
            ipad: { name: "iPad", width: "1024px", height: "900px" },
            android: { name: "安卓手机", width: "415px", height: "800px" }
        };

        // 切换设备
        function switchDevice(device) {
            const preset = devicePresets[device];
            const iframe = document.getElementById('player');
            iframe.style.width = preset.width;
            iframe.style.height = preset.height;
            document.querySelector('.player-container').style.maxWidth = preset.width;
        }

        // 接口配置
        const interfaces = [
          {name: 'VIP专用1', url: 'https://jx.xmflv.com/?url='},
          {name: '解析接口2', url: 'https://jx.77flv.cc/?url='},
          {name: '解析接口3', url: 'https://jx.xymp4.cc/?url='},
          {name: '解析接口4', url: 'https://api.qianqi.net/vip/?url='},
          {name: '解析接口5', url: 'https://jx.xmflv.cc/?url='},
            // 其他接口...
          {name: '备用接口1', url: 'https://www.pouyun.com/?url='},
          {name: '备用接口2', url: 'https://jiexi.site/?url='},
          {name: '备用接口3', url: 'https://am1907.top/?jx='},
          {name: '备用接口4', url: 'https://z1.im1907.top/?jx='},,            
        ];

        // 初始化下拉框
        function initSelector() {
            const container = document.getElementById('optionsContainer');
            interfaces.forEach(item => {
                const div = document.createElement('div');
                div.className = 'option-item';
                div.textContent = item.name;
                div.onclick = () => selectInterface(item);
                container.appendChild(div);
            });
        }

        // 切换接口选项显示
        function toggleOptions() {
            const container = document.getElementById('optionsContainer');
            const arrow = document.querySelector('.arrow');
            container.style.display = container.style.display === 'block' ? 'none' : 'block';
            arrow.classList.toggle('rotate');
        }

        // 选择接口
        let currentInterface = interfaces[0];
        function selectInterface(item) {
            currentInterface = item;
            document.querySelector('.select-header span').textContent = item.name;
            toggleOptions();
        }

        // 播放视频
        function playVideo() {
            const videoUrl = document.getElementById('videoUrl').value;
            if (!videoUrl) return alert('请输入视频地址');
            const finalUrl = currentInterface.url + encodeURIComponent(videoUrl);
            document.getElementById('player').src = finalUrl;
        }

        // 点击外部关闭下拉
        document.addEventListener('click', (e) => {
            if (!e.target.closest('.interface-selector')) {
                document.getElementById('optionsContainer').style.display = 'none';
                document.querySelector('.arrow').classList.remove('rotate');
            }
        });

        // 初始化
        initSelector();
    </script>
</body>
</html>
